-- GENERATED SPELL FOR [Shadowwing Owl] --


function spell0_22265(pUnit, Event) --@Eagle Claw,n/a--
pUnit:FullCastSpellOnTarget(30285,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22265', 15000, 1)
end

function Sorts_22265(pUnit, Event)
local choix_sorts_22265 = math.random(0, 0)
if choix_sorts_22265 == 0 then
pUnit:RegisterEvent('spell0_22265', 1, 1)
end
end

function mob22265_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22265', math.random(1500, 3000), 1)
end

function mob22265_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22265_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22265_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22265, 1, 'mob22265_Action')
RegisterUnitEvent(22265, 2, 'mob22265_Leave')
RegisterUnitEvent(22265, 3, 'mob22265_Kill')
RegisterUnitEvent(22265, 4, 'mob22265_Die')
